// pages/management/market-details/index.js
Page({
  /**
   * 页面的初始数据
   */
  data: {
    cardCode: ""
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    let companyName = options.name
    wx.setNavigationBarTitle({
      title: companyName
    })
    wx.getStorage({
      key: "cardCode",
      success: (res) => {
        if (res.data && res.data.cardCode) {
          let cardCode = res.data.cardCode
          this.setData({
            cardCode
          })
        }
      }
    })
  }
})
